package cms.mager;

import cms.common.Result;
import cms.mager.domain.User;
import cms.mager.mapper.UserMapper;
import cms.mager.service.UserService;
import cms.mager.service.impl.UserServiceImpl;
import cms.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @ClassName: Test.java
 * @author: yuhui
 * @version: 1.0.0
 * @Description: TODO
 * @createTime: 2021年04月15日 03:30:00
 */
public class Test {
    public static void main(String[] args) {
        /*SqlSession sqlSession = SqlSessionUtil.createSqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        List<User> all = mapper.findAll();
        all.forEach(System.out::println);*/
        UserService us = new UserServiceImpl();
        //us.Login("admin", "111");
        Result allUser = us.findAllUser();
        Object data = allUser.getData();
        System.out.println(data);

    }
}
